package wfta.client;

import android.app.Activity;

public class ManagerStaticBuilder {

	private static ConnectionManager _lastConnection = null;
	
	public static void CreateConnection(Activity father) throws Exception{
		_lastConnection = new ConnectionManager(father);
	}
	
	public static ConnectionManager GetLastConnection() throws Exception{
		if (_lastConnection == null) throw new Exception("No connection defined, use Create Connection first");
		return _lastConnection;
	}

	
}
